#ifndef _LISTEPLANSVOLS_H_
#define _LISTEPLANSVOLS_H_

#include <stdio.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <vector>
#include "PlanVol.h"


enum attributVol{
  idAeroportDeDepart = 1,
  heureDeDepart = 2,
  idAeroportDArrivee = 3,
  heureDArrivee = 4,
  niveauDeVol = 5
};

class ListePlansVols{
 private:
  xmlDocPtr doc; // document tree
  
  PlanVol pl;
  std::vector<PlanVol> vPlansVols;

 public:
  ListePlansVols(char *);
  void createTree(const char *);
  void printElementNames(xmlNode *);
  PlanVol createPlanVol(xmlNode *);
  ~ListePlansVols();
};

#endif //_LISTEPLANSVOLS_H_
